package com.blog4j.common.constants;

/**
 * @author 98k灬
 * @version v1.0.0
 * @Description : 功能描述
 * @Create on : 2024/7/19 12:36
 **/
public class CacheConstants {
    /**
     * 系统服务缓存名
     */
    public static final String SYSTEM = "System";

    /**
     * 冒号
     */
    public static final String SPLIT = "::";

    /**
     * 系统基础配置的缓存名
     */
    public static final String SYSTEM_BASE_CONFIG_KEY = SYSTEM + SPLIT + "baseConfig";

    /**
     * OSS基础配置的缓存名
     */
    public static final String SYSTEM_OSS_BASE_CONFIG_KEY = SYSTEM + SPLIT + "ossBaseConfig";

    /**
     * 短信验证码缓存名
     */
    public static final String PHONE_CODE_KEY = "phone_code" + SPLIT;

    /**
     * 短信验证码有效期(秒)
     */
    public static final long PHONE_CODE_EXPIRE_TIME = 60;

    /**
     * 被点赞的文章的缓存名
     */
    public static final String LIKE_ARTICLE_KEY = "article_like" + SPLIT;

    /**
     * 被点赞的文章的缓存有效期(秒)
     */
    public static final long LIKE_ARTICLE_EXPIRE_TIME = 30 * 60;

    /**
     * 被收藏的文章的缓存名
     */
    public static final String FAVORITE_ARTICLE_KEY = "article_favorite" + SPLIT;

    /**
     * 被收藏的文章的缓存有效期(秒)
     */
    public static final long FAVORITE_ARTICLE_EXPIRE_TIME = 30 * 60;

    /**
     * 文章的浏览量缓存名
     */
    public static final String VIEWS_ARTICLE_KEY = "article_views" + SPLIT;

    /**
     * 文章的浏览量缓存有效期(秒)
     */
    public static final long VIEWS_ARTICLE_EXPIRE_TIME = 30 * 60;
}
